<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item to="/login" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item to="/login/system" replace>系统管理</el-breadcrumb-item>
      <el-breadcrumb-item to="/login/system/getUserPower" replace>员工权限设置</el-breadcrumb-item>
      <el-breadcrumb-item>修改权限</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">修改权限</div>
      <div class="text"><span>系统账号：</span>{{18170948854}}</div>
      <div class="content">
        <div class="title">权限列表：</div>
        <el-tree :data="menuList" :props="defaultProp" :show-checkbox="true" node-key="id"
                 :default-checked-keys="[5]" ref="tree"></el-tree>
        <el-button type="primary" size="mini" @click="getCheckedKeys">保存</el-button>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    data () {
      return {
        menuList: [
          {
            name: '商户管理',
            pid: 0,
            id: 0,
            url: '/login/shop',
            icon: 'icon-shanghuguanli',
            childNode: [
              {
                name: '商户认证申请',
                pid: 0,
                id: 11,
                url: '/login/audit/shopCheckQuery'
              },
              {
                name: '商户信息汇总',
                pid: 0,
                id: 12,
                url: '/login/shop'
              },
              {
                name: '商户修改信息列表',
                pid: 0,
                id: 13,
                url: '/login/shop/shopUpdate'
              },
              {
                name: '商户提现',
                pid: 0,
                id: 14,
                url: 'withdrawal',
                childNode: [
                  {
                    name: '商户提现申请',
                    pid: 14,
                    id: 15,
                    url: '/login/shop/shopWithdrawalQuery'
                  },
                  {
                    name: '商户提现审核',
                    pid: 14,
                    id: 16,
                    url: '/login/audit/withdrawalAudit'
                  }
                ]
              },
              {
                name: '商户提现账单',
                pid: 0,
                id: 17,
                url: '/login/shop/shopWithdrawal'
              },
              {
                name: '商户交易汇总',
                pid: 0,
                id: 18,
                url: '/login/shop/shopTradeSum'
              },
              {
                name: '商户营销管理',
                pid: 0,
                id: 19,
                url: '/login/shop/shopMarketingUpdate'
              },
              {
                name: '商户营销重设',
                pid: 0,
                id: 20,
                url: '/login/shop/shopMarketingReset'
              }
            ]
          },
          {
            name: '平台数据统计',
            pid: 0,
            id: 1,
            url: '/login/platformData',
            icon: 'icon-pingtaitongji',
            childNode: [
              {
                name: '用户统计',
                pid: 1,
                id: 21,
                url: '/login/platformData/userCount'
              },
              {
                name: '商户统计',
                pid: 1,
                id: 22,
                url: '/login/platformData/shopCount'
              },
              {
                name: '贷款统计',
                pid: 1,
                id: 23,
                url: '/login/platformData/loanCount'
              },
              {
                name: '平台还款统计',
                pid: 1,
                id: 24,
                url: '/login/platformData/repaymentCount'
              },
              {
                name: '余额统计',
                pid: 1,
                id: 25,
                url: '/login/platformData/moneyCount'
              },
              {
                name: '理财统计',
                pid: 1,
                id: 26,
                url: '/login/platformData/financialCount'
              },
              {
                name: '理财余额统计',
                pid: 1,
                id: 27,
                url: '/login/platformData/financialMoneyCount'
              },
              {
                name: '平台收支统计',
                pid: 1,
                id: 28,
                url: '/login/platformData/incomeAndExpenditureCount'
              },
              {
                name: '收入统计',
                pid: 1,
                id: 29,
                url: '/login/platformData/incomeCount'
              },
              {
                name: '平台统计',
                pid: 1,
                id: 30,
                url: '/login/platformData'
              },
              {
                name: '平台运营数据统计',
                pid: 1,
                id: 31,
                url: '/login/platformData/operationCount'
              }
            ]
          },
          {
            name: '区域数据统计',
            pid: 0,
            id: 2,
            url: '/login/regionData',
            icon: 'icon-quyutongji',
            childNode: [
              {
                name: '导出注册手机号信息',
                pid: 2,
                id: 32,
                url: '/login/regionData/exportMobileInfo'
              },
              {
                name: '导出商户信息汇总',
                pid: 2,
                id: 33,
                url: '/login/regionData/exportShopInfo'
              },
              {
                name: '导出商户交易汇总',
                pid: 2,
                id: 34,
                url: '/login/regionData/exportShopTradeInfo'
              },
              {
                name: '导出用户信息汇总',
                pid: 2,
                id: 35,
                url: '/login/regionData/exportUserInfo'
              }
            ]
          },
          {
            name: '用户管理',
            pid: 0,
            id: 3,
            url: '/login/user',
            icon: 'icon-yonghuguanli',
            childNode: [
              {
                name: '用户信息',
                pid: 3,
                id: 36,
                url: '/login/user'
              },
              {
                name: '授信审核',
                pid: 3,
                id: 37,
                url: '/login/audit/userQuery',
                childNode: [
                  {
                    name: '授信初审',
                    pid: 37,
                    id: 38,
                    url: '/login/audit/userQuery?state=1'
                  },
                  {
                    name: '授信复审',
                    pid: 37,
                    id: 39,
                    url: '/login/audit/userQuery?state=2'
                  },
                  {
                    name: '授信终审',
                    pid: 37,
                    id: 40,
                    url: '/login/audit/userQuery?state=3'
                  }
                ]
              },
              {
                name: '修改资料审核',
                pid: 3,
                id: 41,
                url: '/login/user/userQuery',
                childNode: [
                  {
                    name: '修改资料初审',
                    pid: 41,
                    id: 42,
                    url: '/login/user/userQuery?state=1'
                  },
                  {
                    name: '修改资料复审',
                    pid: 41,
                    id: 43,
                    url: '/login/user/userQuery?state=2'
                  }
                ]
              }
            ]
          },
          {
            name: '分期管理',
            pid: 0,
            id: 4,
            url: '/login/staging',
            icon: 'icon-fenqi',
            childNode: [
              {
                name: '信用提现',
                pid: 4,
                id: 44,
                url: '/login/staging/withdraw',
                childNode: [
                  {
                    name: '信用提现申请',
                    pid: 44,
                    id: 45,
                    url: '/login/staging/withdrawQuery'
                  },
                  {
                    name: '信用提现审核',
                    pid: 44,
                    id: 46,
                    url: '/login/audit/withdrawCheck'
                  }
                ]
              },
              {
                name: '信用提现账单',
                pid: 4,
                id: 47,
                url: '/login/staging/withdraw'
              },
              {
                name: '分期详情',
                pid: 4,
                id: 48,
                url: '/login/staging'
              },
              {
                name: '还款详情',
                pid: 4,
                id: 49,
                url: '/login/staging/repayment'
              },
              {
                name: '本月应还',
                pid: 4,
                id: 50,
                url: '/login/staging/monthShouldRepay'
              },
              {
                name: '本月已还',
                pid: 4,
                id: 51,
                url: '/login/staging/monthAlreadyRepay'
              },
              {
                name: '还款统计',
                pid: 4,
                id: 52,
                url: '/login/staging/repaymentCount'
              },
              {
                name: '逾期详情',
                pid: 4,
                id: 53,
                url: '/login/staging/overdue'
              },
              {
                name: '个人逾期',
                pid: 4,
                id: 54,
                url: '/login/staging/overdueNames'
              }
            ]
          },
          {
            name: '账号余额管理',
            pid: 0,
            id: 5,
            url: '/login/balance',
            icon: 'icon-zhanghuyue',
            childNode: [
              {
                name: '账户余额提现',
                pid: 5,
                id: 55,
                url: '/login/balance/withdraw',
                childNode: [
                  {
                    name: '账户余额提现申请',
                    pid: 55,
                    id: 56,
                    url: '/login/balance/withdrawQuery?type=1'
                  },
                  {
                    name: '账户余额提现审核',
                    pid: 55,
                    id: 57,
                    url: '/login/balance/withdrawQuery?type=2'
                  }
                ]
              },
              {
                name: '详情汇总',
                pid: 5,
                id: 58,
                url: '/login/balance'
              },
              {
                name: '账户余额充值记录',
                pid: 5,
                id: 59,
                url: '/login/balance/balanceRecharge'
              },
              {
                name: '账户余额提现记录',
                pid: 5,
                id: 60,
                url: '/login/balance/balanceWithdraw'
              },
              {
                name: '用户首页详情',
                pid: 5,
                id: 61,
                url: '/login/balance/incomeInfo'
              },
              {
                name: '交易汇总',
                pid: 5,
                id: 62,
                url: '/login/balance/trade',
                childNode: [
                  {
                    name: '转账记录',
                    pid: 62,
                    id: 63,
                    url: '/login/balance/transfer',
                    childNode: [
                      {
                        name: '转入',
                        pid: 63,
                        id: 64,
                        url: '/login/balance/transfer?state=1'
                      },
                      {
                        name: '转出',
                        pid: 63,
                        id: 65,
                        url: '/login/balance/transfer?state=2'
                      }
                    ]
                  },
                  {
                    name: '消费记录',
                    pid: 62,
                    id: 66,
                    url: '/login/balance/tradeSum'
                  },
                  {
                    name: '还款记录',
                    pid: 62,
                    id: 67,
                    url: '/login/balance/repayment'
                  }
                ]
              }
            ]
          },
          {
            name: '理财管理',
            pid: 0,
            id: 6,
            url: '/login/financial',
            icon: 'icon-licaiguanli',
            childNode: [
              {
                name: '理财提现',
                pid: 6,
                id: 68,
                url: '/login/financial/withdraw',
                childNode: [
                  {
                    name: '理财提现申请',
                    pid: 68,
                    id: 69,
                    url: '/login/financial/withdrawQuery'
                  },
                  {
                    name: '理财提现审核',
                    pid: 68,
                    id: 70,
                    url: '/login/financial/withdrawCheck'
                  }
                ]
              },
              {
                name: '标的设置',
                pid: 6,
                id: 71,
                url: '/login/financial/financialSet'
              },
              {
                name: '标的详情',
                pid: 6,
                id: 72,
                url: '/login/financial'
              },
              {
                name: '投资记录',
                pid: 6,
                id: 73,
                url: '/login/financial/investmentRecord'
              },
              {
                name: '充值记录',
                pid: 6,
                id: 74,
                url: '/login/financial/rechargeRecord'
              },
              {
                name: '提现记录',
                pid: 6,
                id: 75,
                url: '/login/financial/withdrawRecord'
              },
              {
                name: '理财交易汇总',
                pid: 6,
                id: 76,
                url: '/login/financial/financialTradeSum'
              },
              {
                name: '个人投资明细',
                pid: 6,
                id: 77,
                url: '/login/financial/investmentDetails'
              },
              {
                name: '购买意向',
                pid: 6,
                id: 78,
                url: '/login/financial/purchaseIntention'
              },
              {
                name: '理财营销管理',
                pid: 6,
                id: 79,
                url: '/login/financial/financialMarkReset'
              },
              {
                name: '理财营销重设',
                pid: 6,
                id: 80,
                url: '/login/financial/financialMarkUpdate'
              },
              {
                name: '理财营销查询',
                pid: 6,
                id: 81,
                url: '/login/financial/financialMarkSearch'
              },
              {
                name: '新浪查询',
                pid: 6,
                id: 82,
                url: '/login/financial/sinaSearch'
              }
            ]
          },
          {
            name: '平台交易统计',
            pid: 0,
            id: 7,
            url: '/login/trade',
            icon: 'icon-jiaoyitongji',
            childNode: [
              {
                name: '交易汇总',
                pid: 7,
                id: 83,
                url: '/login/public/tradeSum'
              },
              {
                name: '交易汇总导出',
                pid: 7,
                id: 84,
                url: '/login/tradeSum'
              },
              {
                name: '财务导出',
                pid: 7,
                id: 85,
                url: '/login/tradeSum/financeExport'
              },
              {
                name: '市场部导出',
                pid: 7,
                id: 86,
                url: '/login/tradeSum/BDExport'
              }
            ]
          },
          {
            name: '平台运营',
            pid: 0,
            id: 8,
            url: '/login/operation',
            icon: 'icon-yunying',
            childNode: [
              {
                name: '首页轮播图',
                pid: 8,
                id: 87,
                url: '/login/operation/carouseMap'
              },
              {
                name: '理财轮播图',
                pid: 8,
                id: 88,
                url: '/login/operation/carouseMapFinancial'
              },
              {
                name: '理财红包设置',
                pid: 8,
                id: 89,
                url: '/login/operation/financialRedEnvelope'
              },
              {
                name: '商城轮播图',
                pid: 8,
                id: 90,
                url: '/login/operation/carouseMapShop'
              },
              {
                name: '商城小程序图',
                pid: 8,
                id: 91,
                url: '/login/operation/shopAppMap'
              },
              {
                name: '商城关键词',
                pid: 8,
                id: 92,
                url: '/login/operation/shopKeyword'
              },
              {
                name: '查询活动',
                pid: 8,
                id: 93,
                url: '/login/operation/searchActivity'
              },
              {
                name: '查询分类',
                pid: 8,
                id: 94,
                url: '/login/operation/searchClass'
              },
              {
                name: '商城广告图',
                pid: 8,
                id: 95,
                url: '/login/operation/shopBanner'
              },
              {
                name: '理财资讯',
                pid: 8,
                id: 96,
                url: '/login/operation/financialNews'
              },
              {
                name: '首页广告图',
                pid: 8,
                id: 97,
                url: '/login/operation/indexBanner'
              },
              {
                name: '活动信息',
                pid: 8,
                id: 98,
                url: '/login/operation/activityInfo'
              },
              {
                name: '优惠券运营',
                pid: 8,
                id: 99,
                url: '/login/operation/coupon',
                childNode: [
                  {
                    name: '报名用户信息',
                    pid: 99,
                    id: 100,
                    url: '/login/operation/signUpUserInfo'
                  },
                  {
                    name: '优惠券统计',
                    pid: 99,
                    id: 101,
                    url: '/login/operation/coupon'
                  },
                  {
                    name: '优惠券商户信息',
                    pid: 99,
                    id: 102,
                    url: '/login/operation/couponShopInfo'
                  }
                ]
              },
              {
                name: '商圈维护',
                pid: 99,
                id: 103,
                url: '/login/operation/shopAreaMaintain'
              }
            ]
          },
          {
            name: '系统管理',
            pid: 0,
            id: 9,
            url: '/login/system',
            icon: 'icon-xitongguanli',
            childNode: [
              {
                name: '员工权限设置',
                pid: 9,
                id: 104,
                url: '/login/system/getUserPower'
              }
            ]
          }
        ],
        defaultProp: {
          children: 'childNode',
          label: 'name'
        }
      }
    },
    created () {
    },
    methods: {
      getCheckedKeys () {
      }
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>
  .text {
    padding: 20px;

    span {
      font-weight: 700;
      color: #000;
    }
  }

  .content {
    padding: 0 20px;

    .title {
      padding-bottom: 20px;
      font-weight: 700;
      color: #000;
    }

    .el-tree{
      padding-bottom: 20px;
    }
  }
</style>
